package statePattern.spring;

import util.SpringUtil;

/**
 * @Author : 叶荻风
 * @create : 2024/6/27 17:19
 */
public class Response {
    private IState currentState;
    private int signal;

    public Response() {
        signal = 0;
        currentState = SpringUtil.getBean(ReviewTreatment.class);
    }

    public void doHandle(){

        currentState.doHandler(this);
    }
    public void setState(IState state){
        currentState = state;
    }

    public int getSignal(){
        return signal;
    }

    public void setSignal(int signal){
        this.signal = signal;
    }
}
